<!DOCTYPE html>

<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body},'error')}">

<body>
<img src="../static/resources/images/pets.png" th:src="@{/resources/images/detar5.png}"/>
<h2>Something went wrong !</h2>
<p th:text="${message}">Exception message</p>
</body>

</html>